import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/tem/Main'
import Ruler from '@/components/tem/Ruler'
import Home from '@/components/tem/Home'
import Prize from '@/components/tem/Prize'
import User from '@/components/tem/User'
import Vote from '@/components/tem/Vote'
import Auditing from '@/components/tem/Auditing'
import Update from '@/components/tem/Update'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [{
      path: '/',
      name: 'home',
      component: Home,
      props: true
    },
    {
      path: '/main',
      name: 'main',
      component: Main,
      props: true
    }, {
      path: '/ruler',
      name: 'ruler',
      component: Ruler,
      props: true
    }, {
      path: '/prize',
      name: 'prize',
      component: Prize,
      props: true
    },
    {
      path: '/user',
      name: 'user',
      component: User,
      props: true
    },
    {
      path: '/vote',
      name: 'vote',
      component: Vote,
      props: true
    },
    {
      path: '/auditing',
      name: 'auditing',
      component: Auditing,
      props: true
    }, {
      path: '/update',
      name: 'update',
      component: Update,
      props: true
    }
  ]
})
